3.728 \(\int \frac{x^n}{\sqrt{1-x}} \, dx\)

Optimal. Leaf size=26 \[ -2 \sqrt{1-x} \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-x\right ) \]

[Out]

-2*Sqrt[1 - x]*Hypergeometric2F1[1/2, -n, 3/2, 1 - x]

________________________________________________________________________________________

Rubi [A]  time = 0.0042752, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {65} \[ -2 \sqrt{1-x} \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-x\right ) \]

Antiderivative was successfully verified.

[In]

Int[x^n/Sqrt[1 - x],x]

[Out]

-2*Sqrt[1 - x]*Hypergeometric2F1[1/2, -n, 3/2, 1 - x]

Rule 65

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)*Hypergeometric2F1[-m, n +
 1, n + 2, 1 + (d*x)/c])/(d*(n + 1)*(-(d/(b*c)))^m), x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Inte
gerQ[m] || GtQ[-(d/(b*c)), 0])

Rubi steps

\begin{align*} \int \frac{x^n}{\sqrt{1-x}} \, dx &=-2 \sqrt{1-x} \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-x\right )\\ \end{align*}

Mathematica [A]  time = 0.0045975, size = 26, normalized size = 1. \[ -2 \sqrt{1-x} \, _2F_1\left (\frac{1}{2},-n;\frac{3}{2};1-x\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^n/Sqrt[1 - x],x]

[Out]

-2*Sqrt[1 - x]*Hypergeometric2F1[1/2, -n, 3/2, 1 - x]

________________________________________________________________________________________

Maple [A]  time = 0.03, size = 23, normalized size = 0.9 \begin{align*}{\frac{{x}^{1+n}}{1+n}{\mbox{$_2$F$_1$}({\frac{1}{2}},1+n;\,2+n;\,x)}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^n/(1-x)^(1/2),x)

[Out]

1/(1+n)*x^(1+n)*hypergeom([1/2,1+n],[2+n],x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{n}}{\sqrt{-x + 1}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n/(1-x)^(1/2),x, algorithm="maxima")

[Out]

integrate(x^n/sqrt(-x + 1), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{x^{n} \sqrt{-x + 1}}{x - 1}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n/(1-x)^(1/2),x, algorithm="fricas")

[Out]

integral(-x^n*sqrt(-x + 1)/(x - 1), x)

________________________________________________________________________________________

Sympy [C]  time = 0.929018, size = 26, normalized size = 1. \begin{align*} - 2 i \sqrt{x - 1}{{}_{2}F_{1}\left (\begin{matrix} \frac{1}{2}, - n \\ \frac{3}{2} \end{matrix}\middle |{\left (x - 1\right ) e^{i \pi }} \right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**n/(1-x)**(1/2),x)

[Out]

-2*I*sqrt(x - 1)*hyper((1/2, -n), (3/2,), (x - 1)*exp_polar(I*pi))

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{n}}{\sqrt{-x + 1}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^n/(1-x)^(1/2),x, algorithm="giac")

[Out]

integrate(x^n/sqrt(-x + 1), x)